﻿@{
    ViewBag.Title = "Loss";
}

@using MMS.UI.Extension;
@section headSection{
    <script src="/Scripts/echarts.js"></script>
   <script src="/Scripts/macarons.js"></script>
    @*三个月以上半年以内未消费者数据*@
<script type="text/javascript">

        $(function () {
            $.globalHelper.datagridPara.init("/Admin/MembershipAnalysis/Loss",
                [@Html.GetSonBtnJs()],
                [[
                { field: 'MName', title: '会员姓名', width: 50, sortable: true },
                {
                    field: 'ttime', title: '最近购买时间', width: 50, sortable: true,
                    formatter: function (colData) {
                        return $.globalHelper.changeDateFormat(colData);
                    }
                }
                ]]);
            $("#tbList").datagrid($.globalHelper.datagridPara.paras);

            $("#tbList").datagrid({
            })

        });
</script>
          @*半年以上一年以内未消费者数据*@
<script type="text/javascript">

        $(function () {
            $.globalHelper.datagridPara.init("/Admin/MembershipAnalysis/Loss1",
                [@Html.GetSonBtnJs()],
                [[
                { field: 'MName', title: '会员姓名', width: 50, sortable: true },
                {
                    field: 'ttime', title: '最近购买时间', width: 50, sortable: true,
                    formatter: function (colData) {
                        return $.globalHelper.changeDateFormat(colData);
                    }
                }
                ]]);
            $("#tbList1").datagrid($.globalHelper.datagridPara.paras);

            $("#tbList1").datagrid({
            })

        });
</script>

    @*一年以上未消费者数据*@
<script type="text/javascript">

        $(function () {
            $.globalHelper.datagridPara.init("/Admin/MembershipAnalysis/Loss2",
                [@Html.GetSonBtnJs()],
                [[
                { field: 'MName', title: '会员姓名', width: 50, sortable: true },
                {
                    field: 'ttime', title: '最近购买时间', width: 50, sortable: true,
                    formatter: function (colData) {
                        return $.globalHelper.changeDateFormat(colData);
                    }
                }
                ]]);
            $("#tbList2").datagrid($.globalHelper.datagridPara.paras);

            $("#tbList2").datagrid({
            })

        });
</script>
    }
三个月以上半年以内未消费者数据:
<table id="tbList"></table>
<div style="width: 100%; height: 30px;"></div>
半年以上一年以内未消费者数据:
<table id="tbList1"></table>
<div style="width: 100%; height: 30px;"></div>
一年以上未消费者数据:
<table id="tbList2"></table>
                     